package com.lxh.lxhcrm.model.mappers.productManagement;

import com.lxh.lxhcrm.model.pojos.*;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;

import java.sql.Date;
import java.util.List;

@Component
public interface CaigouMapper {
    /*
     * 查询
     * */
    //申请采购表列表查询
    List<AppCai> findAppCai(@Param("searchText")String searchText, @Param("selectModel")Integer selectModel,@Param("judge")Integer judge);
    //无分页查询申请采购表
    List<AppCai> allAppCai();
    //采购表列表查询
    List<Caigou> findCaigou(@Param("searchText")String searchText, @Param("selectModel")Integer selectModel,@Param("judge")Integer judge);
    //无分页查询采购表
    List<Caigou> allCaigou();
    //供货商查询
    List<Supplier> findSupplier();
    //支付方式查询
    List<PayWey> findPayWey();
    //交货方式查询
    List<DeliveryType> findDeliveryType();
    //发票类别查询
    List<InvoiceType> findInvoiceType();
    //付款约定查询
    List<AppointPay> findAppointPay();
    /*
     * 修改
     * */
    //修改申请采购表状态
    void changeAppCaiState(@Param("judge")Integer judge,Integer appCaiId);
    //修改采购表状态
    void changeCaiState(@Param("judge")Integer judge,Integer caiId);
    //修改采购表
    void updateCai(Integer empId, Integer deliveryId, Integer invoiceId, Integer payId, Integer appointId, Date deliveryDate, String caddDel, Integer caiId);
}
